package com.casic.ops.entity.domain.pipeline;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 流水线节点执行记录实体类
 * @author cww
 * @date 2022/6/17
 */
@Data
@TableName("pipeline_node_logger")
public class PipelineNodeLoggerDO {

    private static final long serialVersionUID = 1L;

    /**
     *id
     */
    @TableId(value = "id",type= IdType.AUTO)
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long id;

    /**
     * uuid
     */
    @TableField("uuid")
    private long uuid;

    /**
     * pipeline_logger_uuid
     */
    @TableField("pipeline_logger_uuid")
    private long pipelineLoggerUUid;

    /**
     * node_uuid
     */
    @TableField("node_uuid")
    private String nodeUuid;

    /**
     * execute_start_time
     */
    @TableField("execute_start_time")
    private Date executeStartTime;

    /**
     * execute_end_time
     */
    @TableField("execute_end_time")
    private Date executeEndTime;

    /**
     * final_status
     */
    @TableField("final_status")
    private String finalStatus;

    /**
     * creattor
     */
    @TableField("creator")
    private String creator;

    /**
     * modifier
     */
    @TableField("modifier")
    private String modifier;

    /**
     * gmt_create
     */
    @TableField("gmt_create")
    private  Date gmtCreate;

    /**
     * gmt_modified
     */
    @TableField("gmt_modified")
    private Date gmtModified;

    /**
     * deleted
     */
    @TableField("deleted")
    private String deleted;

    /**
     * node_data
     */
    @TableField("node_data")
    private String nodeData;

    /**
     * node_name
     */
    @TableField("node_name")
    private String nodeName;
}
